//
//  ComplationBusinessSuccessViewController.m
//  PigMarket
//
//  Created by 张敬 on 2019/7/23.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import "MeatComplationSuccessViewController.h"

@interface MeatComplationSuccessViewController ()

@property (nonatomic, strong) UIImageView *successIcon;
@property (nonatomic, strong) UILabel *mainLab;
@property (nonatomic, strong) UILabel *detailLab;

@end

@implementation MeatComplationSuccessViewController

#pragma mark - view life cycle

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setUpView];
}

#pragma mark - init method

- (void)setUpView {
    [self initView];
}

- (void)initView {
    
    self.baseNavView.navTitleLabel.text = @"举报成功";
    self.view.backgroundColor = KWhiteColor;
    [self.view addSubview:self.successIcon];
    [self.view addSubview:self.mainLab];
    [self.view addSubview:self.detailLab];
    
    _successIcon.size = CGSizeMake(60, 60);
    _successIcon.mj_y = 70 + self.baseNavView.bottom;
    _successIcon.mj_x = (KScreenWidth - _successIcon.width)/2.0;
    
    _mainLab.mj_y = _successIcon.bottom + 15;
    _detailLab.mj_y = _mainLab.bottom + 8;
}

#pragma mark - setter and getter

- (UIImageView *)successIcon{
    if (!_successIcon) {
        _successIcon = [[UIImageView alloc] init];
        _successIcon.image = [UIImage imageNamed:@"meat_complaints_submit_s"];
    }
    return _successIcon;
}

- (UILabel *)mainLab{
    if (!_mainLab) {
        _mainLab = [[UILabel alloc] init];
        _mainLab.text = @"举报成功";
        _mainLab.textColor = UIColorFromRGB(0x262626);
        _mainLab.font = mFont(21);
        _mainLab.textAlignment = NSTextAlignmentCenter;
        _mainLab.size = CGSizeMake(100, 29);
        _mainLab.mj_x = (KScreenWidth - _mainLab.width)/2.0;

    }
    return _mainLab;
}

- (UILabel *)detailLab{
    if (!_detailLab) {
        _detailLab = [[UILabel alloc] init];
        _detailLab.text = @"您的举报将在3个工作日内受理，并第一时间反馈。";
        _detailLab.textColor = UIColorFromRGB(0x999999);
        _detailLab.font = mFont(13);
        _detailLab.textAlignment = NSTextAlignmentCenter;
        _detailLab.size = CGSizeMake(KScreenWidth, 18);
        _detailLab.mj_x = (KScreenWidth - _detailLab.width)/2.0;

    }
    return _detailLab;
}


@end
